Handle incorrect or missing verse numbers#375
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #375 +/- ##
==========================================
+ Coverage 72.67% 72.70% +0.03%
==========================================
Files 423 423
Lines 36009 36016 +7
Branches 4965 4966 +1
==========================================
+ Hits 26169 26186 +17
+ Misses 8745 8737 -8
+ Partials 1095 1093 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Enkidu93
left a comment
There was a problem hiding this comment.
@Enkidu93 reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit and @pmachapman).
src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs line 89 at r1 (raw file):
} else if ( VerseRef.AreOverlappingVersesRanges(verse1: verseRef.Verse, verse2: _curVerseRef.Verse)
Could you explain why you need to check both of these?
pmachapman
left a comment
There was a problem hiding this comment.
@pmachapman made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit and @Enkidu93).
src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs line 89 at r1 (raw file):
Previously, Enkidu93 (Eli C. Lowry) wrote…
Could you explain why you need to check both of these?
They may vary, as libpalaso uses a basic verse parsing method in VerseRef.AreOverlappingVersesRanges. Checking both ensures that both our parsed verse number and what VerseRef.AreOverlappingVersesRanges parses are the same.
Enkidu93
left a comment
There was a problem hiding this comment.
@Enkidu93 made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit and @pmachapman).
src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs line 89 at r1 (raw file):
Previously, pmachapman (Peter Chapman) wrote…
They may vary, as libpalaso uses a basic verse parsing method in
VerseRef.AreOverlappingVersesRanges. Checking both ensures that both our parsed verse number and whatVerseRef.AreOverlappingVersesRangesparses are the same.
I see - that makes sense. Thank you! One of these days, we're just going to have to create a libpalaso PR to remedy all these VerseRef parsing oddities 😅.
ddaspit
left a comment
There was a problem hiding this comment.
@ddaspit reviewed 3 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @pmachapman).
7bec581 to
ba3a117
Compare
Fixes #363
This change is